package com.have.blog.model.models;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

public class Blog implements Serializable {
    @ApiModelProperty(value = "唯一uid")
    private Integer uid;

    @ApiModelProperty(value = "博客标题")
    private String title;

    @ApiModelProperty(value = "博客简介")
    private String summary;

    @ApiModelProperty(value = "博客点击数")
    private Integer clickCount;

    @ApiModelProperty(value = "博客收藏数")
    private Integer collectCount;

    @ApiModelProperty(value = "标题图片uid")
    private Integer coverUid;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "管理员uid")
    private Integer adminUid;

    @ApiModelProperty(value = "是否原创（0:不是 1：是）")
    private Integer isOriginal;

    @ApiModelProperty(value = "作者名字")
    private String author;

    @ApiModelProperty(value = "博客出处")
    private String articlesCitations;

    @ApiModelProperty(value = "博客分类UID")
    private Integer blogCategoryUid;

    @ApiModelProperty(value = "推荐等级(0:正常)")
    private Integer level;

    @ApiModelProperty(value = "是否发布：0：否，1：是")
    private Integer isPublish;

    @ApiModelProperty(value = "排序字段")
    private Integer sortCount;

    @ApiModelProperty(value = "是否开启评论(0:否 1:是)")
    private Integer openComment;

    @ApiModelProperty(value = "类型【0 博客， 1：推广】")
    private Integer type;

    @ApiModelProperty(value = "外链【如果是推广，那么将跳转到外链】")
    private String outsideLink;

    @ApiModelProperty(value = "投稿用户UID")
    private Integer userUid;

    @ApiModelProperty(value = "文章来源【0 后台添加，1 用户投稿】")
    private Integer articleSource;

    @ApiModelProperty(value = "博客内容")
    private String content;

    private static final long serialVersionUID = 1L;

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public Integer getClickCount() {
        return clickCount;
    }

    public void setClickCount(Integer clickCount) {
        this.clickCount = clickCount;
    }

    public Integer getCollectCount() {
        return collectCount;
    }

    public void setCollectCount(Integer collectCount) {
        this.collectCount = collectCount;
    }

    public Integer getCoverUid() {
        return coverUid;
    }

    public void setCoverUid(Integer coverUid) {
        this.coverUid = coverUid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getAdminUid() {
        return adminUid;
    }

    public void setAdminUid(Integer adminUid) {
        this.adminUid = adminUid;
    }

    public Integer getIsOriginal() {
        return isOriginal;
    }

    public void setIsOriginal(Integer isOriginal) {
        this.isOriginal = isOriginal;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getArticlesCitations() {
        return articlesCitations;
    }

    public void setArticlesCitations(String articlesCitations) {
        this.articlesCitations = articlesCitations;
    }

    public Integer getBlogCategoryUid() {
        return blogCategoryUid;
    }

    public void setBlogCategoryUid(Integer blogCategoryUid) {
        this.blogCategoryUid = blogCategoryUid;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getIsPublish() {
        return isPublish;
    }

    public void setIsPublish(Integer isPublish) {
        this.isPublish = isPublish;
    }

    public Integer getSortCount() {
        return sortCount;
    }

    public void setSortCount(Integer sortCount) {
        this.sortCount = sortCount;
    }

    public Integer getOpenComment() {
        return openComment;
    }

    public void setOpenComment(Integer openComment) {
        this.openComment = openComment;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getOutsideLink() {
        return outsideLink;
    }

    public void setOutsideLink(String outsideLink) {
        this.outsideLink = outsideLink;
    }

    public Integer getUserUid() {
        return userUid;
    }

    public void setUserUid(Integer userUid) {
        this.userUid = userUid;
    }

    public Integer getArticleSource() {
        return articleSource;
    }

    public void setArticleSource(Integer articleSource) {
        this.articleSource = articleSource;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", uid=").append(uid);
        sb.append(", title=").append(title);
        sb.append(", summary=").append(summary);
        sb.append(", clickCount=").append(clickCount);
        sb.append(", collectCount=").append(collectCount);
        sb.append(", coverUid=").append(coverUid);
        sb.append(", status=").append(status);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", adminUid=").append(adminUid);
        sb.append(", isOriginal=").append(isOriginal);
        sb.append(", author=").append(author);
        sb.append(", articlesCitations=").append(articlesCitations);
        sb.append(", blogCategoryUid=").append(blogCategoryUid);
        sb.append(", level=").append(level);
        sb.append(", isPublish=").append(isPublish);
        sb.append(", sortCount=").append(sortCount);
        sb.append(", openComment=").append(openComment);
        sb.append(", type=").append(type);
        sb.append(", outsideLink=").append(outsideLink);
        sb.append(", userUid=").append(userUid);
        sb.append(", articleSource=").append(articleSource);
        sb.append(", content=").append(content);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}